﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Cms.Web.CmsSystem.SysAdmin.INFO
{
    public partial class Preview : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //string 
            //Server.Execute(
            //Server.
        }
        private Model.Info _model = null;
        public Model.Info model {
            get {
                if (_model == null) {
                    string id=EntLib.Request.GetString("id");
                    if (!String.IsNullOrEmpty(id))
                    {
                        BLL.BaseDao<Model.Info, string> bll = new BLL.BaseDao<Model.Info, string>();
                        _model=bll.GetById(id,false);
                    }
                }
                return _model;
            }
        }
    }
}